//
//  newButton.m
//  LocomotiveGuards
//
//  Created by admin on 15/11/26.
//  Copyright (c) 2015年 REDOOR. All rights reserved.
//

#import "newButton.h"

@implementation newButton
- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    CGFloat x=0;
    CGFloat y=contentRect.size.height*3/4;
    CGFloat w=contentRect.size.width;
    CGFloat h=contentRect.size.height/4;
    CGRect rect=CGRectMake(x, y, w, h);

    return rect;
    
}
- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGFloat x=0;
    CGFloat y=0;
    CGFloat w=contentRect.size.width;
    CGFloat h=contentRect.size.height*3/4;
    CGRect rect=CGRectMake(x, y, w, h);
    return rect;
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
